-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed basedocs.jl (temporarily pushed off) and logging.jl to only use jldoctest #57840
Conversation
You can look at the doctest failures (in the check job) to see where this still needs work. It's safe for you to ignore all the other CI checks for this PR. Take a look at https://documenter.juliadocs.org/stable/man/doctests/#Filtering-Doctests for how to handle those undef examples. |
43389bf
to
0f797f0
Compare
I'd use a filter that only filters out floating point values, not the whole output. e.g. |
Hi @LilithHafner, so zero regex works, but even the basic regex with or without being raw string is throwing an error for me. Currently, I'm at this error:
Have you experienced this error before? |
Right now your escape codes are broken (the regex is within a docstring so you may need double escaping). One thing you can do to get faster feedback is to paste a docstring into the REPL and see if it parses. Right now one of the docstrings in this PR does not parse in a REPL so we can know right away that it won't work. Playing with that might give you a better understanding of escaping. FYI You can also grep for examples to see how this is done already:
|
Sorry!! Assumed that having 1 commit is better than 4. Anyway, I'll resubmit. "This is an initial switch from julia-repl to jldoctest, as requested here: #56921 Longer term plan is to create a second PR where switch all julia-repl to jldoctest that does not necessarily need filter = regex, then a third for the filter = regex. Tested with test/corelogging" |
14c5b65
to
96a43b6
Compare
Use |
b6648ba
to
5ec9f23
Compare
Please use a setup block if necessary instead of adding |
26bcfb4
to
751c041
Compare
Thanks! |
#56921
Small update of two files (logging.jl and basedocs.jl) to switch from
julia-repl
tag tojldoctest
tags.Would prefer for reviewer to double check that
make -C doc doctest=true
works for them